<!DOCTYPE html >
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro"
>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--判断是否登录，登录就不显示-->
<div th:if="${session.user==null}">
    <a href="/tologin">点击登录</a>
</div>
<!--判断是否有该权限，没有就隐藏-->
<div shiro:hasPermission="13141955194">
    <a href="/user/add">add</a>|
</div>
<div shiro:hasPermission="15766205394">
    <a href="/user/update">update</a>|
</div>
</body>
</html>